package com.laity.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author: Laity
 * @Project: JavaLaity
 * @Package: com.laity.event.CustomEvent
 * @Date: 2023年11月21日 11:00
 * @Description: SpringBoot事件的应用
 */

public class CustomEvent extends ApplicationEvent {

    private final String message;

    public CustomEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

    public String getMessage(){
        return this.message;
    }
}
